package net.factoryOpen.quickfactory.manufacturing.exe.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.factoryOpen.quickfactory.manufacturing.exe.mapper.ExeProcessOperatingMapper;
import net.factoryOpen.quickfactory.manufacturing.exe.domain.ExeProcessOperating;
import net.factoryOpen.quickfactory.manufacturing.exe.service.IExeProcessOperatingService;

import net.factoryOpen.quickfactory.system.mapper.SysBillFrozenMapper;

/**
 * 产线班组作业Service业务层处理
 * 
 * @author factoryOpen
 * @date 2024-07-13
 */
@Service
public class ExeProcessOperatingServiceImpl implements IExeProcessOperatingService 
{
    @Autowired(required = false)
    private ExeProcessOperatingMapper exeProcessOperatingMapper;

    /**
     * 查询产线班组作业
     * 
     * @param id 产线班组作业主键
     * @return 产线班组作业
     */
    @Override
    public ExeProcessOperating selectExeProcessOperatingById(Long id)
    {
        return exeProcessOperatingMapper.selectExeProcessOperatingById(id);
    }

    /**
     * 查询产线班组作业列表
     * 
     * @param exeProcessOperating 产线班组作业
     * @return 产线班组作业
     */
    @Override
    public List<ExeProcessOperating> selectExeProcessOperatingList(ExeProcessOperating exeProcessOperating)
    {
        return exeProcessOperatingMapper.selectExeProcessOperatingList(exeProcessOperating);
    }

    /**
     * 新增产线班组作业
     * 
     * @param exeProcessOperating 产线班组作业
     * @return 结果
     */
    @Override
    public int insertExeProcessOperating(ExeProcessOperating exeProcessOperating)
    {
        exeProcessOperating.setCreateTime(DateUtils.getNowDate());
        return exeProcessOperatingMapper.insertExeProcessOperating(exeProcessOperating);
    }

    /**
     * 修改产线班组作业
     * 
     * @param exeProcessOperating 产线班组作业
     * @return 结果
     */
    @Override
    public int updateExeProcessOperating(ExeProcessOperating exeProcessOperating)
    {
        exeProcessOperating.setUpdateTime(DateUtils.getNowDate());
        return exeProcessOperatingMapper.updateExeProcessOperating(exeProcessOperating);
    }

    /**
     * 批量删除产线班组作业
     * 
     * @param ids 需要删除的产线班组作业主键
     * @return 结果
     */
    @Override
    public int deleteExeProcessOperatingByIds(Long[] ids)
    {
        return exeProcessOperatingMapper.deleteExeProcessOperatingByIds(ids);
    }

    /**
     * 删除产线班组作业信息
     * 
     * @param id 产线班组作业主键
     * @return 结果
     */
    @Override
    public int deleteExeProcessOperatingById(Long id)
    {
        return exeProcessOperatingMapper.deleteExeProcessOperatingById(id);
    }
}
